Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

159
Visualizações
Calculate Distancing Apps Script "google sheet" (Start point, Stop point, End Point)

I want this function to give me the path distance from the starting point to the ending point. I also want to add points within the path as rest points and force the path to pass through them to calculate the actual distance. Of course, these points in the function are preferred to be optional for the user. ِAny help to do that, please

CODE "Apps Script":

function DrivingMeters(Start, Stoppoint1,Stoppoint2,End) {
var directions = Maps.newDirectionFinder()
.setOrigin(Start)
.addWaypoint(Stoppoint1)
.addWaypoint(Stoppoint2)
.setDestination(End)
.getDirections();
return directions.routes[0].legs[0].distance.value;
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda